<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<body>
<style type="text/css">
	#articleManagement{
		padding: 15px;
		background: #fff;
		border-radius: 10px;
	}
	.layui-inline{
		width:70%;
		margin-left: 10%;
		margin-top: 20px;
	}
	.layui-input-block{
		margin-left: 135px;
	}
	.layui-form-label{
		width: 100px;
	}
	.layui-layedit{
		background: #fff;
		margin-bottom: 20px;
	}
	iframe{
		background: #fff;
	}
	#labelHome{
		font-size: 20px;
		margin: 10px;
		font-family: '宋体';
	}
</style>
	<div id="articleManagement">
		<form id="myForm" action="articleManagement/save" method="post" class="layui-form white-bg radius">
			<input type="hidden" name="id" id = "id" value="${model.id}">
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">标题</label>
					<div class="layui-input-block">
						<input type="text" class="layui-input" name="title" value="${model.title}">
					</div>
				</div>
				<div class="layui-inline"> 
					<label class="layui-form-label">类型</label>
					<div class="layui-input-block">
						<input type="text" class="layui-input" name="type" value="${model.type}">
					</div>
				</div>
			</div>
			<label id="labelHome">内容：</label>
			<textarea id="lay_edit" lay-verify="content" name = "content">${model.content}</textarea>
			
		</form>
	</div>
	<script>
		layui.use(['layedit', 'form'], function(){
			var form = layui.form;
		  	var layedit = layui.layedit;
		  	layedit.set({	//设置图片接口
		  	  	uploadImage: {
			  	    url: 'updat1',
			  	    type: 'post'
		  	  	}
		  	});
		  	var index = layedit.build('lay_edit',{
		  		height: 350
		  	});
		  	form.verify({
	           content: function(value) {
	               return layedit.sync(index);
	           }
	       });
		});
	</script>
</body>
